package com.kotlin.usercenter.injection.module

import com.kotlin.usercenter.service.UserService
import com.kotlin.usercenter.service.impl.UserServiceImpl
import com.kotlin.usercenter.service.impl.UserServiceImpl2
import dagger.Module
import dagger.Provides
import javax.inject.Named

@Module
class UserModule {

    @Provides
    @Named("service")
    fun providesUserSerivce(service: UserServiceImpl):UserService{
        return service
    }

    @Provides
    @Named("service2")
    fun providesUserSerivce2(service: UserServiceImpl2):UserService{
        return service
    }
}